﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Bll;

namespace DMSWcfServices
{
    public class IUser : IIUser
    {
        public void DoWork()
        {
        }

        public Boolean validateUser(string UserName, string Password) 
        {
            return Bll.UserBlo.ValidateUser(UserName, Password);       
        }

        public string getRols() {
            return Bll.UserBlo.getRols();
        }

        public int setUser(string idUser, string userName, string name, string pass, string mail, string skype, string msn, string phone, string phone2, int rol, string status,bool encriptar)
        { 
            return UserBlo.SetUser(idUser,userName, name, pass, mail, skype, msn, phone, phone2, rol, status,encriptar);
        }

        public string getUserbyUserName(string userName){
            return UserBlo.getUserbyUsername(userName).GetXml();
        }

        public string getUsers() {
            return UserBlo.getUsers().GetXml();
        }

    }
}
